/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.click.app.dao.hibernate;

import com.click.app.dao.AsignationCutPayDao;
import com.click.app.model.AsignationCutPay;
import com.click.app.model.PaymentsCut;
import java.util.List;

/**
 *
 * @author ariel
 */
public class AsignationCutPayDaoHibernate extends GenericDaoHibernate<AsignationCutPay, Long> implements AsignationCutPayDao{

    public AsignationCutPayDaoHibernate() {
        super(AsignationCutPay.class);
    }

    public List<AsignationCutPay> findByPaymentsCut(PaymentsCut paymentsCut) {
        return getHibernateTemplate().find("from AsignationCutPay where paymentsCut=?", paymentsCut);
    }

}
